package com.fqgj.sentry.controller.pc.request;

import com.fqgj.sentry.common.exception.BizException;
import com.fqgj.sentry.common.exception.enums.ErrorCodeEnums;
import com.fqgj.sentry.common.request.ParamsObject;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-08-01 上午10:23
 */


public class ModifyExecuteResultVo extends ParamsObject {
    /**
     * 结果集id
     */
    private Long id;
    /**
     * 结果描述
     */
    private String resultDesc;
    /**
     * 优先级
     */
    private Integer level;
    /**
     * 结果类型：1:拒绝  2:人工 3:通过
     */
    private Integer resultType;

    @Override
    public void validate() {
        if (level == null || id == null || resultType == null) {
            throw new BizException(ErrorCodeEnums.param_valid_error);
        }
    }

    public Long getId() {
        return id;
    }

    public ModifyExecuteResultVo setId(Long id) {
        this.id = id;
        return this;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public ModifyExecuteResultVo setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
        return this;
    }

    public Integer getLevel() {
        return level;
    }

    public ModifyExecuteResultVo setLevel(Integer level) {
        this.level = level;
        return this;
    }

    public Integer getResultType() {
        return resultType;
    }

    public ModifyExecuteResultVo setResultType(Integer resultType) {
        this.resultType = resultType;
        return this;
    }
}
